import logging
import time
from uuid import UUID

from celery import shared_task

from flask import current_app


@shared_task
def demo(id: UUID):
    logging.info("睡眠5秒")
    time.sleep(5)
    logging.info(f"id的值:{id}")
    logging.info(f"配置信息:{current_app.config}")
    return "慕课网"
